package com.pig4cloud.pigx.contract.api.v1.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pig4cloud.pigx.common.core.util.R;
import com.pig4cloud.pigx.contract.entity.ContractOrderHistory;
import com.pig4cloud.pigx.contract.open.api.dto.OpenApiOrderDTOV1;
import com.pig4cloud.pigx.contract.open.api.vo.OpenApiOrderVOV1;

import java.util.List;

/**
 */
public interface OrderHistoryServiceV1 extends IService<ContractOrderHistory> {

	/**
	 * 获取强平单历史
	 * @param dto dto
	 * @return r
	 */
	R<List<OpenApiOrderVOV1>> getLiquidateOrder(OpenApiOrderDTOV1 dto);

	/**
	 * 获取用户历史订单
	 * @param dto dto
	 * @return r
	 */
	R<List<OpenApiOrderVOV1>> getAllOrderList(OpenApiOrderDTOV1 dto);

}
